package com.pcbly.web.action.property;

import java.util.List;

import com.pcbly.web.action.BaseAction;
import com.pcbly.web.bean.PropertyBean;
import com.pcbly.web.business.property.PropertyService;

public class PropertyAction extends BaseAction<PropertyBean> {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1096654130420477885L;
	private PropertyBean propertyBean;
	private List<PropertyBean> propertyBeans;
	private PropertyService propertyService;

	public String index() throws Exception {
		propertyBeans = propertyService.getAll();
		return super.index();
	}
	
	public void setPropertyService(PropertyService propertyService) {
		this.propertyService = propertyService;
	}

	public PropertyBean getPropertyBean() {
		return propertyBean;
	}

	public void setPropertyBean(PropertyBean propertyBean) {
		this.propertyBean = propertyBean;
	}

	public List<PropertyBean> getPropertyBeans() {
		return propertyBeans;
	}

	public void setPropertyBeans(List<PropertyBean> propertyBeans) {
		this.propertyBeans = propertyBeans;
	}

}
